#!/usr/bin/env python
# -*—coding:utf8-*-
# @author: flame
# @file: zoo.py
# @time: 2023/10/10 14:58

class Animal:
    def __init__(self, name, age):
        self.name = name
        self.age = age

    def act(self):
        print('动物行为')


class Dog(Animal):
    def __init__(self, name, age):
        super().__init__(name, age)

    def act(self):
        print(f"{self.name} 经常咬尾巴")


class Horse(Animal):
    def __init__(self, name, age):
        super().__init__(name, age)

    def act(self):
        print(f"{self.name} 能日行千里")


class Bird(Animal):
    def __init__(self, name, age):
        super().__init__(name, age)

    def act(self):
        print(f"{self.name} 发出叽叽喳喳的叫声")


dog = Dog("旺财", 3)
horse = Horse("小马", 2)
bird = Bird("小鸟", 1)

dog.act()
horse.act()
bird.act()
